package com.elasticcloudservice.predict;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: Chy
 * @Description: 染色体(个体)，表示一种装箱方案
 * @Date: Created at 17:54 2018/4/12
 */
public class Chromosome {

    private List<ElasticCloudServer> ecsList = new ArrayList<>();
    private double fitness;

    public Chromosome(){}

    public Chromosome(List<ElasticCloudServer> ecsList){
        this.ecsList = ecsList;
    }

    public List<ElasticCloudServer> getEcsList() {
        return ecsList;
    }

    public void setEcsList(List<ElasticCloudServer> ecsList) {
        this.ecsList = ecsList;
    }


    public double getFitness() {
        return fitness;
    }

    public void setFitness(double fitness) {
        this.fitness = fitness;
    }
}